package main;

import java.io.IOException;
import java.net.ServerSocket;

public class Servidor {

	// Servidor
	public static void main(String[] args) throws IOException {
		
		ServerSocket server_sokect = null;
		boolean 		listening  = true;
		
		try {
			server_sokect = new ServerSocket(8081);
		} 
		catch (IOException e) {
			System.err.println("Couldn't get I/O for the connection to: taranis.");
			System.exit(1);
		} 
		
		while(listening)
			new AtencionAlCliente(server_sokect.accept(), null).start();
		
		server_sokect.close();
		
	}

	


	
}
